package edu.zqu.collegeField.project.po;

import com.baomidou.mybatisplus.annotation.IdType;

import java.math.BigInteger;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 场地申请部门审核结果
 * </p>
 *
 * @author 廖森
 * @since 2020-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "FieldDepartmentExamine对象", description = "场地申请部门审核结果")
public class FieldDepartmentExamine implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主id")
    @TableId(value = "id", type = IdType.AUTO)
    private BigInteger id;

    @ApiModelProperty(value = "学校id")
    private BigInteger collegeId;

    @ApiModelProperty(value = "场地申请id，关联到field_application.id")
    private BigInteger fieldApplicationId;

    @ApiModelProperty(value = "场地管理部门id")
    private BigInteger departmentId;

    @ApiModelProperty(value = "部门审批结果，0：不通过，1：通过")
    private Integer result;

    @ApiModelProperty(value = "部门审批详情/备注")
    private String detail;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "操作者")
    private BigInteger byWho;

    @ApiModelProperty(value = "本记录是否有效")
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "历史版本")
    private BigInteger lastVersion;


}
